home *** CD-ROM | disk | FTP | other *** search
- #include "lib.h"
- #include <time.h>
-
- #ifdef NULL
- #undef NULL
- #endif
-
- #define NULL (long *) 0
-
- #ifndef __STDC__ /* for __STDC__ pick up proto from <std.h> */
- extern long time();
- #endif
-
- PUBLIC int utime(name, timp)
- _CONST char *name;
- long timp[2];
- {
- if (timp == NULL) {
- register long current_time;
-
- current_time = time(NULL);
- M.m2_l1 = current_time;
- M.m2_l2 = current_time;
- } else {
- M.m2_l1 = timp[0];
- M.m2_l2 = timp[1];
- }
- M.m2_i1 = len(name);
- M.m2_p1 = (char *)name;
- return callx(FS, UTIME);
- }
-